notebook: Introduce gtk_notebook_has_current_page()
authorBenjamin Otte <otte@redhat.com>
Wed, 23 Dec 2015 00:18:30 +0000 (01:18 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 11 Jan 2016 16:05:23 +0000 (17:05 +0100)
commitad245e02265379e8aadbe0d299f62339ff0f3d11
tree1520b5ee599798f0245ab444d8f84da384d8edd3
parent0d72055b890150addea3d85047045093d013377a
notebook: Introduce gtk_notebook_has_current_page()

GtkNotebook does not switch the current page if all pages are hidden. So
it may be that no visible page exsits, but there still is a current
page set.

We culd clear the current page, but I'm unsure about backwards
compatibility.

So instead, this new function handles that case.
gtk/gtknotebook.c